from PyQt6.QtWidgets import QWidget, QVBoxLayout, QLabel, QPushButton

class Module1(QWidget):
    def __init__(self):
        super().__init__()
        self.init_ui()
        
    def init_ui(self):
        layout = QVBoxLayout(self)
        
        # 添加模块内容
        title = QLabel("功能1")
        title.setStyleSheet("font-size: 18px; font-weight: bold;")
        
        button = QPushButton("执行功能1")
        button.clicked.connect(self.run_function)
        
        layout.addWidget(title)
        layout.addWidget(button)
        layout.addStretch()
        
    def run_function(self):
        # 实现功能1的具体逻辑
        pass 